﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Map.ywxt.Project
{
    using NHibernate;
    using NHibernate.Mapping.ByCode;
    using NHibernate.Mapping.ByCode.Conformist;

    using DB_NH.DB_Model.ywxt;

    public class ProjectSummary_Map : EntityMapping<DB_Model.ywxt.Project.ProjectSummary>
    {
        public ProjectSummary_Map()
        {
            Property(x => x.ProjectBDWLX, map =>
            {
                map.Length(200);
            });

            Property(x => x.ProjectBDWName, map =>
            {
                map.Length(2000);
            });

            Property(x => x.ProjectCode, map =>
            {
                map.Length(200);
            });

            Property(x => x.ProjectCreatorName, map =>
            {
                map.Length(200);
            });

            Property(x => x.ProjectDate, map =>
            {
            });

            Property(x => x.ProjectDepartmentName, map =>
            {
                map.Length(200);
            });

            Property(x => x.ProjectFWFJE, map =>
            {
            });

            Property(x => x.ProjectName, map =>
            {
                map.Length(1000);
            });

            Property(x => x.ProjectOpenDate, map =>
            {
            });

            Property(x => x.ProjectRemark, map =>
            {
                map.Length(80000000);
            });

            Property(x => x.ProjectSFZQ, map =>
            {
                map.Length(100);
            });

            Property(x => x.ProjectWinDate, map =>
            {
            });

            Property(x => x.ProjectWinner, map =>
            {
                map.Length(1000);
            });

            Property(x => x.ProjectWTDW, map =>
            {
                map.Length(1000);
            });

            Property(x => x.ProjectWTJE, map =>
            {
            });

            Property(x => x.ProjectWTJE_MY, map =>
            {
            });

            Property(x => x.ProjectXMXZ, map =>
            {
                map.Length(100);
            });

            Property(x => x.ProjectZBFS, map =>
            {
                map.Length(100);
            });

            Property(x => x.ProjectZBJE, map =>
            {
            });

            Property(x => x.ProjectZBJE_MY, map =>
            {
            });

            ManyToOne(x => x.Project, map =>
            {
                map.Column("ProjId");
            });
        }
    }
}
